Download install-importer.xml and run it with "ant -f install-importer.xml".
This will download and install importer for you and place it in the recommended dir (${user.home}/.antworks/lib/).
Alternatively, you can put
the antworks-importer.jar in the $ANT_HOME/lib dir or use the recommended location
${user.home}/.antworks/lib/
Typedef
Use the typedef task to let ant know where to find the importer task.
<typedef resource="org/krysalis/antworks/importer/antlib.xml"
classpath="${user.home}/.antworks/lib/antworks-importer.jar" />
Add the init antlet
Add the java antlet
Add the forrest antlet
Note
Apache Forrest is the tool used to build this website. And of course we used the forrest antlet.
Complete build.xml
<project name="sample" default="compile">
<description>
Antworks Importer
</description>
<property name="project.name" value="antworks-site" />
<property name="project.version" value="0.1" />
<property name="project.src.dir" value="src/java" />
<!-- Pickup the ability to import Antlets -->
<typedef resource="org/krysalis/antworks/importer/antlib.xml"
classpath="${user.home}/.antworks/lib/antworks-importer.jar" />
<importer name="init-0.1" href="http://antworks.sourceforge.net/library/antlets/" />
<importer name="java-0.1" href="http://antworks.sourceforge.net/library/antlets/" />
<target name="all" depends="compile,dist" />
</project>